package bb.lanxing.lib.devices.ble.ble.characteristic.light;

import bb.lanxing.lib.kt.ByteExtKt;
import java.util.LinkedHashSet;
import java.util.Set;
import kotlin.Metadata;

public final class LightModeSet {
    private final Boolean Auto;
    private final Boolean DoubleFlash;
    private final Boolean DynamicColor;
    private final Boolean DynamicFlash;
    private final Boolean FallDetection;
    private final Boolean FallWarningFlash;
    private final Boolean FastFlash;
    private final Boolean Flash3Hz;
    private final Boolean Intensity20;
    private final Boolean Intensity21_40;
    private final Boolean Intensity41_60;
    private final Boolean Intensity61_80;
    private final Boolean Intensity81_100;
    private final Boolean LeftSignalOn;
    private final Boolean LeftSignalOnTemp;
    private final Boolean LightOn;
    private final Boolean Off;
    private final Boolean RandomFlash;
    private final Boolean RightSignalOn;
    private final Boolean RightSignalOnTemp;
    private final Boolean SOSFlash;
    private final Boolean SlowFlash;
    private final Boolean WarningFlash;
    private final Set<LightMode> supportSet;

    public LightModeSet(int i) {
        Boolean bool;
        Boolean bool2;
        Boolean bool3;
        Boolean bool4;
        Boolean bool5;
        Boolean bool6;
        Boolean bool7;
        Boolean bool8;
        Boolean bool9;
        Boolean bool10;
        Boolean bool11;
        Boolean bool12;
        Boolean bool13;
        Boolean bool14;
        Boolean bool15;
        Boolean bool16;
        Boolean bool17;
        Boolean bool18;
        Boolean bool19;
        Boolean bool20;
        Boolean bool21;
        Boolean bool22;
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        this.supportSet = linkedHashSet;
        Boolean valueOf = ByteExtKt.bit2Boolean(i, 0);
        Boolean bool23 = null;
        valueOf = !valueOf ? null : valueOf;
        if (valueOf != null) {
//            valueOf.booleanValue();
            bool = linkedHashSet.add(LightMode.Off);
        } else {
            bool = null;
        }
        this.Off = bool;
        Boolean valueOf2 = ByteExtKt.bit2Boolean(i, 1);
        valueOf2 = !valueOf2 ? null : valueOf2;
        if (valueOf2 != null) {
//            valueOf2;
            bool2 = linkedHashSet.add(LightMode.Intensity81_100);
        } else {
            bool2 = null;
        }
        this.Intensity81_100 = bool2;
        Boolean valueOf3 = ByteExtKt.bit2Boolean(i, 2);
        valueOf3 = !valueOf3 ? null : valueOf3;
        if (valueOf3 != null) {
//            valueOf3;
            bool3 = linkedHashSet.add(LightMode.Intensity61_80);
        } else {
            bool3 = null;
        }
        this.Intensity61_80 = bool3;
        Boolean valueOf4 = ByteExtKt.bit2Boolean(i, 3);
        valueOf4 = !valueOf4 ? null : valueOf4;
        if (valueOf4 != null) {
//            valueOf4.booleanValue();
            bool4 = linkedHashSet.add(LightMode.Intensity41_60);
        } else {
            bool4 = null;
        }
        this.Intensity41_60 = bool4;
        Boolean valueOf5 = ByteExtKt.bit2Boolean(i, 4);
        valueOf5 = !valueOf5 ? null : valueOf5;
        if (valueOf5 != null) {
//            valueOf5.booleanValue();
            bool5 = Boolean.valueOf(linkedHashSet.add(LightMode.Intensity21_40));
        } else {
            bool5 = null;
        }
        this.Intensity21_40 = bool5;
        Boolean valueOf6 = ByteExtKt.bit2Boolean(i, 5);
        valueOf6 = !valueOf6 ? null : valueOf6;
        if (valueOf6 != null) {
//            valueOf6.booleanValue();
            bool6 = linkedHashSet.add(LightMode.Intensity20);
        } else {
            bool6 = null;
        }
        this.Intensity20 = bool6;
        Boolean valueOf7 = ByteExtKt.bit2Boolean(i, 6);
        valueOf7 = !valueOf7 ? null : valueOf7;
        if (valueOf7 != null) {
//            valueOf7.booleanValue();
            bool7 = linkedHashSet.add(LightMode.SlowFlash);
        } else {
            bool7 = null;
        }
        this.SlowFlash = bool7;
        Boolean valueOf8 = ByteExtKt.bit2Boolean(i, 7);
        valueOf8 = !valueOf8 ? null : valueOf8;
        if (valueOf8 != null) {
//            valueOf8;
            bool8 = linkedHashSet.add(LightMode.FastFlash);
        } else {
            bool8 = null;
        }
        this.FastFlash = bool8;
        Boolean valueOf9 = ByteExtKt.bit2Boolean(i, 8);
        valueOf9 = !valueOf9 ? null : valueOf9;
        if (valueOf9 != null) {
//            valueOf9;
            bool9 = linkedHashSet.add(LightMode.RandomFlash);
        } else {
            bool9 = null;
        }
        this.RandomFlash = bool9;
        Boolean valueOf10 = ByteExtKt.bit2Boolean(i, 9);
        valueOf10 = !valueOf10 ? null : valueOf10;
        if (valueOf10 != null) {
//            valueOf10.booleanValue();
            bool10 = linkedHashSet.add(LightMode.Auto);
        } else {
            bool10 = null;
        }
        this.Auto = bool10;
        Boolean valueOf11 = ByteExtKt.bit2Boolean(i, 10);
        valueOf11 = !valueOf11 ? null : valueOf11;
        if (valueOf11 != null) {
//            valueOf11.booleanValue();
            bool11 = linkedHashSet.add(LightMode.LeftSignalOnTemp);
        } else {
            bool11 = null;
        }
        this.LeftSignalOnTemp = bool11;
        Boolean valueOf12 = ByteExtKt.bit2Boolean(i, 11);
        valueOf12 = !valueOf12 ? null : valueOf12;
        if (valueOf12 != null) {
//            valueOf12;
            bool12 = linkedHashSet.add(LightMode.LeftSignalOn);
        } else {
            bool12 = null;
        }
        this.LeftSignalOn = bool12;
        Boolean valueOf13 = ByteExtKt.bit2Boolean(i, 12);
        valueOf13 = !valueOf13 ? null : valueOf13;
        if (valueOf13 != null) {
//            valueOf13;
            bool13 = linkedHashSet.add(LightMode.RightSignalOnTemp);
        } else {
            bool13 = null;
        }
        this.RightSignalOnTemp = bool13;
        Boolean valueOf14 = ByteExtKt.bit2Boolean(i, 13);
        valueOf14 = !valueOf14 ? null : valueOf14;
        if (valueOf14 != null) {
//            valueOf14;
            bool14 = linkedHashSet.add(LightMode.RightSignalOn);
        } else {
            bool14 = null;
        }
        this.RightSignalOn = bool14;
        Boolean valueOf15 = ByteExtKt.bit2Boolean(i, 14);
        valueOf15 = !valueOf15 ? null : valueOf15;
        if (valueOf15 != null) {
//            valueOf15.booleanValue();
            bool15 = linkedHashSet.add(LightMode.DoubleFlash);
        } else {
            bool15 = null;
        }
        this.DoubleFlash = bool15;
        Boolean valueOf16 = ByteExtKt.bit2Boolean(i, 15);
        valueOf16 = !valueOf16 ? null : valueOf16;
        if (valueOf16 != null) {
//            valueOf16.booleanValue();
            bool16 = linkedHashSet.add(LightMode.LightOn);
        } else {
            bool16 = null;
        }
        this.LightOn = bool16;
        Boolean valueOf17 = ByteExtKt.bit2Boolean(i, 16);
        valueOf17 = !valueOf17 ? null : valueOf17;
        if (valueOf17 != null) {
//            valueOf17;
            bool17 = linkedHashSet.add(LightMode.FallDetection);
        } else {
            bool17 = null;
        }
        this.FallDetection = bool17;
        Boolean valueOf18 = ByteExtKt.bit2Boolean(i, 17);
        valueOf18 = !valueOf18 ? null : valueOf18;
        if (valueOf18 != null) {
//            valueOf18;
            bool18 = linkedHashSet.add(LightMode.SOSFlash);
        } else {
            bool18 = null;
        }
        this.SOSFlash = bool18;
        Boolean valueOf19 = ByteExtKt.bit2Boolean(i, 18);
        valueOf19 = !valueOf19 ? null : valueOf19;
        if (valueOf19 != null) {
//            valueOf19;
            bool19 = linkedHashSet.add(LightMode.Flash3Hz);
        } else {
            bool19 = null;
        }
        this.Flash3Hz = bool19;
        Boolean valueOf20 = ByteExtKt.bit2Boolean(i, 19);
        valueOf20 = !valueOf20 ? null : valueOf20;
        if (valueOf20 != null) {
//            valueOf20;
            bool20 = linkedHashSet.add(LightMode.WarningFlash);
        } else {
            bool20 = null;
        }
        this.WarningFlash = bool20;
        Boolean valueOf21 = ByteExtKt.bit2Boolean(i, 20);
        valueOf21 = !valueOf21 ? null : valueOf21;
        if (valueOf21 != null) {
//            valueOf21;
            bool21 = linkedHashSet.add(LightMode.FallWarningFlash);
        } else {
            bool21 = null;
        }
        this.FallWarningFlash = bool21;
        Boolean valueOf22 = ByteExtKt.bit2Boolean(i, 21);
        valueOf22 = !valueOf22 ? null : valueOf22;
        if (valueOf22 != null) {
//            valueOf22;
            bool22 = linkedHashSet.add(LightMode.DynamicFlash);
        } else {
            bool22 = null;
        }
        this.DynamicFlash = bool22;
        Boolean valueOf23 = ByteExtKt.bit2Boolean(i, 22);
        valueOf23 = !valueOf23 ? null : valueOf23;
        if (valueOf23 != null) {
//            valueOf23.booleanValue();
            bool23 = linkedHashSet.add(LightMode.DynamicColor);
        }
        this.DynamicColor = bool23;
    }

    public Set<LightMode> getSupportSet() {
        return this.supportSet;
    }

    public Boolean getOff() {
        return this.Off;
    }

    public Boolean getIntensity81_100() {
        return this.Intensity81_100;
    }

    public Boolean getIntensity61_80() {
        return this.Intensity61_80;
    }

    public Boolean getIntensity41_60() {
        return this.Intensity41_60;
    }

    public Boolean getIntensity21_40() {
        return this.Intensity21_40;
    }

    public Boolean getIntensity20() {
        return this.Intensity20;
    }

    public Boolean getSlowFlash() {
        return this.SlowFlash;
    }

    public Boolean getFastFlash() {
        return this.FastFlash;
    }

    public Boolean getRandomFlash() {
        return this.RandomFlash;
    }

    public Boolean getAuto() {
        return this.Auto;
    }

    public Boolean getLeftSignalOnTemp() {
        return this.LeftSignalOnTemp;
    }

    public Boolean getLeftSignalOn() {
        return this.LeftSignalOn;
    }

    public Boolean getRightSignalOnTemp() {
        return this.RightSignalOnTemp;
    }

    public Boolean getRightSignalOn() {
        return this.RightSignalOn;
    }

    public Boolean getDoubleFlash() {
        return this.DoubleFlash;
    }

    public Boolean getLightOn() {
        return this.LightOn;
    }

    public Boolean getFallDetection() {
        return this.FallDetection;
    }

    public Boolean getSOSFlash() {
        return this.SOSFlash;
    }

    public Boolean getFlash3Hz() {
        return this.Flash3Hz;
    }

    public Boolean getWarningFlash() {
        return this.WarningFlash;
    }

    public Boolean getFallWarningFlash() {
        return this.FallWarningFlash;
    }

    public Boolean getDynamicFlash() {
        return this.DynamicFlash;
    }

    public Boolean getDynamicColor() {
        return this.DynamicColor;
    }

    public String toString() {
        return "supportSet=" + this.supportSet + ",Off=" + this.Off + ",Intensity81_100=" + this.Intensity81_100 + ",Intensity61_80=" + this.Intensity61_80 + ",Intensity41_60=" + this.Intensity41_60 + ",Intensity21_40=" + this.Intensity21_40 + ",Intensity20=" + this.Intensity20 + ",SlowFlash=" + this.SlowFlash + ",FastFlash=" + this.FastFlash + ",RandomFlash=" + this.RandomFlash + ",Auto=" + this.Auto + ",LeftSignalOnTemp=" + this.LeftSignalOnTemp + ",LeftSignalOn=" + this.LeftSignalOn + ",RightSignalOnTemp=" + this.RightSignalOnTemp + ",RightSignalOn=" + this.RightSignalOn + ",DoubleFlash=" + this.DoubleFlash + ",LightOn=" + this.LightOn + ",FallDetection=" + this.FallDetection + ",SOSFlash=" + this.SOSFlash + ",Flash3Hz=" + this.Flash3Hz + ",WarningFlash=" + this.WarningFlash + ",FallWarningFlash=" + this.FallWarningFlash + ",DynamicFlash=" + this.DynamicFlash + ",DynamicColor=" + this.DynamicColor;
    }
}
